import { createSSRApp } from 'vue'
import { routeInterceptor, requestInterceptor, prototypeInterceptor } from '@/interceptors'
import stores from '@/stores'

import App from './App.vue'

export function createApp() {
  const app = createSSRApp(App)
  app.use(stores)
  app.use(routeInterceptor)
  app.use(requestInterceptor)
  app.use(prototypeInterceptor)
  return {
    app,
  }
}
